package com.ej.busi.domain;

import com.ej.common.annotation.Excel;
import com.ej.common.annotation.Excel.ColumnType;
import com.ej.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户和课程关联表 ej_user_course
 * 
 * @author ej
 */
@Data
public class EjUserCourse  implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 参数主键 */
    @Excel(name = "参数主键", cellType = ColumnType.NUMERIC)
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 课程id */
    @Excel(name = "课程id")
    private Long courseId;

    /** 有效时间 */
    @Excel(name = "有效时间")
    private Date effectiveTime;

    /** 创建时间 */
    @Excel(name = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 数据状态 */
    @Excel(name = "数据状态")
    private String delFlag;
}
